package cc.wanforme.fsync.entity.ws;

public class WsRes<T> {
    public static final String LOGIN="login"; // 检查登录
    public static final String TASKS="tasks"; // 获取所有任务
    public static final String FINISH="finish"; // 新的已完成同步记录
    // 类型
    private String type;

    private T data;

    public WsRes(String type, T data) {
        this.type = type;
        this.data = data;
    }
    public static <T> WsRes<T> New(String type, T data) {
        return new WsRes<T>(type, data);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
